import request from "../utils/request";

export function getGroupBuy(params:any){
  return request.get("/api/yp/groupBuy",{params})
}
export function getTag(params:any){
  return request.get("/api/yp/tag",{params})
}
export function getGroupBuyProduct(params:any){
  return request.get("/api/yp/groupBuyProduct",{params})
}
export function getShop(params:any){
  return request.get("/api/yp/shop",{params})
}
export function getProduct(params:any){
  return request.get("/api/yp/product",{params})
}
export function addGroupBuy(data:any){
  return request.post("/api/yp/groupBuy",data)
}
export function addGroupProduct(data:any){
  return request.post("/api/yp/groupBuyProduct",data)
}
export function updateGroupBuy(data:any){
  return request.put("/api/yp/groupBuy",data)
}

